<template>
  <div class="app-container">
    <el-tabs default-active-key="1" position="left" :style="{ textAlign: 'right' }">
      <el-tab-pane key="1" title="系统内置">
        <el-form :model="form" :style="{ width: '50%' }">
          <el-form-item prop="sys_app_name" label="系统名称">
            <el-input v-model="form.sys_app_name"></el-input>
          </el-form-item>
          <el-form-item prop="sys_app_logo" label="系统Logo">
            <el-space>
              <el-upload action="/" class="upload-root">
                <div class="upload-logo-card">
                  <div class="upload-logo-card-text">
                    <el-icon>
                      <Plus />
                    </el-icon>
                  </div>
                </div>
              </el-upload>
            </el-space>
          </el-form-item>
          <el-form-item prop="sys_user_initPassword" label="初始密码">
            <el-input v-model="form.sys_user_initPassword" type="password"></el-input>
          </el-form-item>
          <el-form-item prop="sys_index_skinName" label="皮肤样式">
            <el-select v-model="form.sys_index_skinName">
              <el-option label="蓝色" value="蓝色" />
            </el-select>
          </el-form-item>
          <el-form-item prop="sys_index_sideTheme" label="侧边栏主题">
            <el-select v-model="form.sys_index_sideTheme">
              <el-option label="深色主题" value="深色主题" />
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-space>
              <el-button type="primary">提交</el-button>
              <el-button>重置</el-button>
            </el-space>
          </el-form-item>
        </el-form>
      </el-tab-pane>
      <el-tab-pane key="2" title="其它">暂无内容</el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup>
import { reactive } from 'vue';

const form = reactive({});
</script>

<style lang="scss" scoped>
.upload-root {
  width: 178px;
  height: 178px;
  display: block;
}

.upload-logo-preview {
  font-size: 0px;
}

.upload-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  box-sizing: border-box;
  border: 1px dashed #c0ccda;
  border-radius: 5px;
  color: #4e5969;

  &-text {
    font-size: 24px;
  }
}
</style>
